<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div id="div1"></div>
		<button id="btn">生成九九乘法表</button>
		<button id="btn1">读取九九乘法表</button>
		<script src="bck/static/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(document).ready(function(){
				$("#btn").click(function(){
					$.ajax({
						type:"post",
						url:"/99c.php",
						data:{
							a:'99'
						},
						success:function(mgs){
							console.log(mgs);
						}
					});
				});
				$("#btn1").click(function(){
					$.ajax({
						type:"post",
						url:"/99c.php",
						dataType:'json',
						data:{
							a1:'991'
						},
						success:function(mgs){
							console.log(mgs);
							var c=0;
							for (var a in mgs)
						    {
						    	var str="";
						        for (var b=0;b<mgs[a].length;b++)
						        {
						            $("#div1").append("  <span>"+mgs[a][b]+"</span>");
						        }
								$("#div1").append("<br/>");
						    }
						}
					});
				});
				
			});
		</script>
	</body>
</html>
